<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\UserController;
use App\Http\Controllers\Common\QiniuController;
use App\Http\Controllers\Common\TestController;
use App\Http\Controllers\Api\PapperController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::post('api/login', [UserController::class, 'login']);
Route::post('api/logout', [UserController::class, 'logout']);
Route::get('upload/qiniu/token', [QiniuController::class, 'getUploadToken']);
Route::post('qiniu/callback', [QiniuController::class, 'callback']);
Route::post('qiniu/callback/image', [QiniuController::class, 'callbackImage']);
Route::get('test', [TestController::class, 'test']);
Route::get('api/papper/info/unauth/{id?}', [PapperController::class, 'show']);
